package com.wanxi.version1;

public class People implements OnTheScreen{
    private String gameName;

    public People() {
    }

    public People(String gameName) {
        this.gameName = gameName;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public void talk(){
        System.out.println("可以说话");
    }
    public void walk(){
        System.out.println("可以走路");
    }
    @Override
    public void onTheScreen() {
        System.out.println("上线啦，屏幕上见");
    }
}
